package com.yanqu.road.entity.estatewar;

import com.yanqu.road.entity.DataObject;

import java.math.BigInteger;
import java.util.Objects;

public class UserEstateWarData extends DataObject {

    private long userId;

    private int type;

    private int pos;

    private int crossType;

    private int crossPos;

    private int worshipValue;

    private long modifyTime;

    private int maxType;

    private int maxPos;

    private long getDailyRewardTime;

    private long totalRobTimes;              //累计抢占成功次数

    private long totalBeRobTimes;            //累计被抢占成功次数

    private BigInteger totalDailyRewardCount = BigInteger.ZERO;        //累计获得每日奖励数量

    private long lastBeAttackNotifyTime;
    private int estateSkinId;               //府邸皮肤

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        if(this.type != type) {
            this.type = type;
            setUpdateOption();
        }
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        if(this.pos != pos) {
            this.pos = pos;
            setUpdateOption();
        }
    }

    public int getCrossType() {
        return crossType;
    }

    public void setCrossType(int crossType) {
        if(this.crossType != crossType) {
            this.crossType = crossType;
            setUpdateOption();
        }
    }

    public int getCrossPos() {
        return crossPos;
    }

    public void setCrossPos(int crossPos) {
        if(this.crossPos != crossPos) {
            this.crossPos = crossPos;
            setUpdateOption();
        }
    }

    public int getWorshipValue() {
        return worshipValue;
    }

    public void setWorshipValue(int worshipValue) {
        if(this.worshipValue != worshipValue) {
            this.worshipValue = worshipValue;
            setUpdateOption();
        }
    }

    public long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(long modifyTime) {
        if(this.modifyTime != modifyTime) {
            this.modifyTime = modifyTime;
            setUpdateOption();
        }
    }

    public int getMaxType() {
        return maxType;
    }

    public void setMaxType(int maxType) {
        if(this.maxType != maxType) {
            this.maxType = maxType;
            setUpdateOption();
        }
    }

    public int getMaxPos() {
        return maxPos;
    }

    public void setMaxPos(int maxPos) {
        if(this.maxPos != maxPos) {
            this.maxPos = maxPos;
            setUpdateOption();
        }
    }

    public long getGetDailyRewardTime() {
        return getDailyRewardTime;
    }

    public void setGetDailyRewardTime(long getDailyRewardTime) {
        if(this.getDailyRewardTime != getDailyRewardTime) {
            this.getDailyRewardTime = getDailyRewardTime;
            setUpdateOption();
        }
    }

    public long getTotalRobTimes() {
        return totalRobTimes;
    }

    public void setTotalRobTimes(long totalRobTimes) {
        if(this.totalRobTimes != totalRobTimes) {
            this.totalRobTimes = totalRobTimes;
            setUpdateOption();
        }
    }

    public long getTotalBeRobTimes() {
        return totalBeRobTimes;
    }

    public void setTotalBeRobTimes(long totalBeRobTimes) {
        if(this.totalBeRobTimes != totalBeRobTimes) {
            this.totalBeRobTimes = totalBeRobTimes;
            setUpdateOption();
        }
    }

    public BigInteger getTotalDailyRewardCount() {
        return totalDailyRewardCount;
    }

    public void setTotalDailyRewardCount(BigInteger totalDailyRewardCount) {
        if(!Objects.equals(this.totalDailyRewardCount, totalDailyRewardCount)) {
            this.totalDailyRewardCount = totalDailyRewardCount;
            setUpdateOption();
        }
    }

    public long getLastBeAttackNotifyTime() {
        return lastBeAttackNotifyTime;
    }

    public void setLastBeAttackNotifyTime(long lastBeAttackNotifyTime) {
        if(this.lastBeAttackNotifyTime != lastBeAttackNotifyTime) {
            this.lastBeAttackNotifyTime = lastBeAttackNotifyTime;
            setUpdateOption();
        }
    }

    public int getEstateSkinId() {
        return estateSkinId;
    }

    public void setEstateSkinId(int estateSkinId) {
        if(this.estateSkinId != estateSkinId) {
            this.estateSkinId = estateSkinId;
            setUpdateOption();
        }
    }
}
